Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Conversation

traiansf
Copy link
Member

@traiansf traiansf commented Dec 13, 2024

  • Fix (prove) tests (broken by refactoring <locals> to hold a List instead of a Map) so that make test passes
  • Add Makefile targets to (only) build specific targets

@traiansf traiansf self-assigned this Dec 13, 2024
@traiansf traiansf mentioned this pull request Dec 12, 2024
2 tasks
@traiansf traiansf force-pushed the dev/traiansf/fix-tests branch from 8f4241e to 593e621 Compare December 16, 2024 09:00
@traiansf traiansf marked this pull request as ready for review December 16, 2024 09:00
Comment on lines +283 to +288
rule (L1:List ListItem(X:KItem) _:List)[size(L1)] => X
[simplification]

rule (L1:List ListItem(_:KItem) L2:List)[size(L1) <- V] =>
L1:List ListItem(V) L2:List
[simplification]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the Haskell backend able to use these two rules?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it' using them for the <locals> and <mem> specs: https://github.com/Pi-Squared-Inc/wasm-semantics/pull/40/files#diff-56e769c3ddbacd55039dc6c309d8126d4f9d67c1ed9cbaccdf22ac284aa971ebR8

Unfortunately, not for the wrc-20 spec. I assume the issue is that while it works as an initial configuration, it cannot be matched as a final configuration; that is why the locals-loop spec also only works when the accessed local is the last in the list.

@traiansf traiansf merged commit 6bdc7e6 into master Dec 16, 2024
2 checks passed
@traiansf traiansf deleted the dev/traiansf/fix-tests branch December 16, 2024 14:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants